extends CanvasLayer


onready var item_panel = $ItemPanel
onready var bottom_panel = $BottomPanel
onready var info_panel = $ItemInfoPanel


#============================================================
#   内置
#============================================================
func _ready():
	info_panel.visible = false


#============================================================
#   连接信号
#============================================================
func _on_Player_took_item(data):
	item_panel.add_item(data)


func _on_ItemPanel_selected_item(item):
	info_panel.visible = true
	info_panel.show_item(item)


func _on_ItemPanel_unselected_item(item):
	info_panel.visible = false
